package priv.jesse.mall.dao;


import org.springframework.data.jpa.repository.JpaRepository;
import priv.jesse.mall.entity.Address;
import javax.transaction.Transactional;
import java.util.List;


public interface AddressDao extends JpaRepository<Address, Integer> {


    @Transactional
    void deleteByUserId(int id);

    @Transactional
    List<Address> getByUserId(int id);
}
